Card device having applets and transfer of apdus to applets

ABSTRACT

The invention produces a card device having functional applets and an AID applet, as well as a relaying table that forwards commands addressed to the AID applet to functional applets.

FIELD OF THE INVENTION

The invention relates to a resource-limited card device, in particular a card device based on the Java Card technology or the native technology, in particular a chip card, a chip card module, or a chip card module in a housing of any desired form factor, or a virtual chip card set up in a mobile terminal. The card device can in particular be equipped with the functionality of a payment transaction card or with a SIM functionality (SIM=subscriber identity module for mobile communication). Applets in the card device can be addressed with commands, for example APDUs.

STATE OF THE ART

A resource-limited card device comprises a microprocessor having an operating system (OS) implemented thereon (e.g. Java Card OS or native OS) and an applet memory for implementing applets. Functionalities of the card device are achieved by applets implemented in the card device. For example, one or several payment transaction applets are implemented in a card device with the functionality of a payment transaction card. Payment transaction cards are implemented in the card format, for example ID 1, and as virtual payment transaction cards implemented as applications in a mobile telephone. For a card device with SIM functionality (SIM=subscriber identity module) for using a mobile-communication capable terminal in a mobile communication network, one or several SIM-specific applets are implemented in the card device.

The loading of an applet into a card device by means of APDU commands is specified in the document [1] Global Card Platform Specification V2.2.1, 2011, hereinafter also referred to by the official short reference GPC_SPE_034. According to [1] GPC_SPE_034, chapter 9, in particular chapter 9.3, an applet is installed in a card device by a load packet for the applet being loaded into the card device with a/several LOAD command(s) (9.3.2), and an instance of the applet being installed in the card device with the content of the load packet with an INSTALL command (9.3.3 et seq.). According to [1] GPC_SPE_034, chapter 9.3.6, page 84, upon the installation of the applet instance by means of the INSTALL command, it is ensured in particular with an INSTALL FOR INSTALL that the applet identifier AID of the applet is stored in the registry of the Java Card device. This circumstance is represented in FIG. 9-2 (page 92) by the entry “install and register Application”. According to [1] GPC_SPE_034, chapter 11, the structure of the INSTALL APDU command is described. According to sub-chapter 11.5.2.3.2, table 11-43, the application AID of an applet to be installed is transferred in the data field of the INSTALL command, namely in the sub-field “Application AID”.

According to [1] GPC_SPE_034, each applet to be installed thus has exactly one application identifier (AID). Further, the AID and the applet instance are installed in the card device from one and the same load packet. Later, upon calling the applet instance, the applet instance can be addressed exclusively with the AID from the same load packet. If it is intended to be possible to call an applet with different AIDs, a separate instance of the applet has to be generated from this load packet for each of the different AIDs, and thus, further, separate applet instances are created in the card device.

Global Platform knows the shareable interface mechanism, which allows communication, in particular data exchange, between applet instances originating from different load packets.

In a payment transaction card which accommodates several payment transaction applets and which is to be usable in several countries and/or which supports several access possibilities (in particular contactless/contact-type), a separate applet instance must be created and a separate applet AID must be provided for each constellation of, for example, applet, country and access possibility.

Examples: Instance 1 (A-1) applet A in country X contact-type; instance 2 (A-2) applet A in country Y contact-type; instance 3 (B-1) applet B in country X contact-type; instance 4 (B-2) applet B in country Y contact-type; instance 5 (A-3) applet A in country X contactless; instance 6 (A-4) applet A in country Y contactless; etc. The multiplicity of 6 applet instances requires much memory space. However, with respect to function, all four (two) applet instances which are based on the same applet A (B) are largely identical. Merely the conditions under which the card device is addressed are different; in the above examples the type of contacting contactless or contact-type, and the country of operation.

In the patent application DE 102016007189.3 of the applicant of the present patent application, a mechanism is stated with which two AIDs can be created for one and the same applet instance.

OBJECT OF THE INVENTION

The invention is based on the object of producing a card device which allows a memory-saving installation of applets which can be employed under different conditions. Further, a method is to be stated for relaying commands to applet instances in such a resource-limited card device. In particular, the card device and/or method is to offer a mechanism of relaying to the same applet commands that come in under different conditions without having to create several instances of the applet in the card device.

SUMMARY OF THE INVENTION

The object is achieved by a card device according to claim 1 and a method according to the independent claim. Advantageous embodiments of the invention are stated in the dependent claims.

The card device according to the invention according to claim 1 comprises, in a non-volatile memory area, an applet instance of one or several functional applets, e.g. payment applets (payment transaction applets) or mobile-communication network access applets, and for each installed applet instance one applet identifier AID associated with the applet instance (e.g. as usual in the registry).

According to the invention, the card device further comprises an AID applet instance of a special AID applet, which itself is not a functional applet (payment applet, etc.), but is set up to work through commands coming in at the card device (e.g. APDUs) and to forward these to instances of functional applets. A separate AID applet identifier AID is associated with the AID applet instance and stored in the card device, for example in the registry of the card device, with the other AIDs of the conventional, functional applets. Further, the card device contains a relaying table, which is created in the AID applet itself, or is created such that it can be utilized by the AID applet. The relaying table (1) mutually associates the AID of the AID applet plus conditions of commands coming in at the card device and (2) mutually associates applets installed in the card device. When a command comes in at the card device and is transferred from the JavaCard OS to the AID applet, the AID applet (or its instance in the card device) accepts the command, evaluates the relaying table and forwards the command to the correct/respective functional applet to be employed in accordance with the conditions stored in the relaying table. For the relaying of commands between the applets to be carried out, both the AID applet instance and the instances of the functional applets each have a mutually coordinated interface unit, for example a shareable interface object, to set up a shareable interface between the various applets.

In this way it is possible to use one command (e.g. APDU) to address a particular applet instance of a functional applet in the card device in two different ways. Optionally, the applet instance can be addressed either with its own applet identifier. Alternatively, the same applet instance can be addressed with the applet identifier of the AID applet plus the matching conditions for the command to be relayed to this applet instance. There is only one instance of the functional applet behind both relaying options. Space must be provided for the instance of the AID applet and the relaying table. However, with one single instance of the AID applet and the relaying table, a multiplicity of additional instances of functional applets can be avoided.

Via a return functionality, for example a return method, of the interface unit it is possible to optionally return response data in response to a command from the functional applet to the AID applet.

As a condition there can be provided: Contacting type, in particular contactless or contact-type, between the card device and a terminal set up for the operation of the card device; country of operation of the card device; country relationship domestic or abroad between a country of operation of the card device and a home country of the card device in which the card device is registered; or other suitable conditions.

The card device is optionally configured in the Java Card technology or in the native code technology.

Optionally, the usual direct way of relaying commands, with the specific AID of the addressed applet (e.g. AID A for applet A), is preserved in unchanged manner by the relaying mechanism according to the invention via the AID applet and the relaying table.

Optionally, the card device contains respectively one applet instance of an international applet for international operation of the card device outside a home country and/or one applet instance of a home applet for domestic operation of the card device in the home country in which the card device is registered.

BRIEF DESCRIPTION OF THE DRAWINGS

In the following the invention will be explained in more detail on the basis of embodiment examples and with reference to the drawing, in which there is shown:

FIG. 1 a card device, which is set up as a payment transaction card with several payment applets, according to embodiments of the invention;

FIG. 2 a variation of the card device of FIG. 2, according to embodiments of the invention.

DETAILED DESCRIPTION OF EMBODIMENT EXAMPLES

FIG. 1 shows a card device according to an embodiment of the invention, which is set up as a payment transaction card with several payment applets A, B, . . . . The card device comprises two different functional applets A and B, represented in the card device by applet instances (applet instance objects) AIO A and AIO B. The two functional applets A and B are payment transaction applets which are set up to carry out an electronic payment transaction. The applet A is generally set up for international payment transactions (int). The applet B is generally set up for payment transactions in the home country (domestic payment transactions; dom). The card device further contains an AID applet AIO AID and a relaying table T. The relaying table T contains a plurality of line entries with columns AID, conditions (Bed1, Bed2), applet. The AID applet further contains an interface unit SI, configured here as a shareable interface object according to the Global Platform Standard. The applet instances of those functional applets A, B, . . . which must be able to communicate with the AID applet also contain an interface unit SI, configured as a shareable interface object according to the Global Platform Standard.

In the following, the handling of an APDU command in the card device is considered, by which APDU command a payment transaction is carried out.

An APDU command coming in at the card device of FIG. 1, said APDU command containing an applet identifier AID for the functional applet A, AID A, is routed directly to the applet instance AIO A of the applet A. APDU commands with AID B are routed directly to the AIO B instance of the applet B in an analogous manner.

An APDU command coming in at the card device of FIG. 1, said APDU command containing an applet identifier AID for the AID applet, AID X, is routed to the applet instance AIO AID of the AID applet, i.e. initially to no functional payment transaction applet. The APDU command with AID X shown in FIG. 1 comes in via the contactless interface of the card device. This feature corresponds to a condition Bed1 “contactless” CL in the relaying table T. Further, the card device is currently being used in the international space int. This corresponds to the condition Bed2 int in the relaying table T. The relaying table T indicates that APDU commands with AID X and the condition contactless CL and international space are routed to the applet instance AIO A of the applet A. Correspondingly, the APDU command is routed via the shareable interface between the AID applet instance AIO AID and the applet instance A to MO A to the applet instance AIO A of the applet A. A possible response AW from the applet instance AIO A is routed back to the AID applet instance MO AID via the shareable interface and made available to the contactless interface CL of the card device.

When an APDU command comes in at the card device contactlessly in the international space, thus the international applet A is employed. Thus, contactless CL payment transactions in the international space are carried out by the international applet A. According to the further lines of the relaying table T (line 2), international (int) contact-type C payment transactions are processed by the international applet A. (Line 3) Payment transactions carried out in contact-type manner C in the home country (dom) C are carried out by the home country applet B. (Line 4) Payment transactions carried out contactlessly in the home country (dom) are carried out by the home country applet B.

According to FIG. 1, all international payment transactions are carried out with the applet A, and all payment transactions in the home country (domestic) with the applet B, irrespective of the contacting type, contactless or contact-type. This would also be possible without evaluating the contacting type as a condition. However, the relaying system illustrated by means of FIG. 1 also allows other, more individual, relaying models, as will be explained below by means of FIG. 2.

FIG. 2 shows a variation of the card device from FIG. 2, according to embodiments of the invention. In FIG. 2, the two lower lines of the relaying table T differ from the relaying table T of FIG. 1; the two upper lines are identical.

The objective of the embodiments of FIG. 2 is that in the home country dom only contact-type C payment transactions should be processed by the home country applet B. In contrast, payment transactions carried out in the home country dom contactlessly CL should be processed by the international applet A. On the other hand, regardless of the contacting type, contactless CL or contact-type C, payment transactions carried out in the international space int should always be carried out with the international applet A.

According to FIG. 2, line three, an APDU command coming in in contact-type C fashion in the home country dom, said APDU command containing AID B, is routed directly to the applet instance AIO B of the home country applet B. Thus, the contact-type payment transaction in the home country is carried out with the home country applet B.

According to FIG. 2, line four, an APDU command coming in contactlessly CL, said APDU command containing AID X, is routed to the AIO AID applet instance of the AID applet, and is routed thereby to the applet instance AIO A of the international applet A. Thus, the effect is achieved that contactless payments are always carried out with the international applet A. Conventionally, to achieve this effect, an additional applet instance of the applet A would have to be installed in the card device.

According to alternative embodiments of the invention, for example, contact-type payment transactions in the international space, which would normally be carried out by the international applet A, are re-routed to the home country applet B by means of an AID X and an entry AID X+C +int−>applet B in the relaying table T. Thus, contact-type C payment transactions are always carried out with the home country applet B, even if they take place in the international space. Of course, for this purpose, the relaying table T then must not contain the entry of line 2 shown in FIG. 2. For this entry AID A+C+int−>applet A causes a mandatory direct routing of contact-type C payment transactions in the international space to the international applet A.

It is therefore advantageous if the entries in the relaying table T are mutually coordinated, in accordance with a desired objective.

CITED PRIOR ART

-   [1] [GPC_SPE_034] Global Card Platform Specification V2.2.1, 2011 

1.-10. (canceled)
 11. A card device comprising a non-volatile memory area, wherein in the non-volatile memory area there are installed: at least one applet instance of at least one applet; for each installed applet instance an applet identifier AID associated with the applet instance; wherein an AID applet instance of an AID applet, comprising an interface unit for communication with applets; in each installed applet intended to be able to communicate with the AID applet, an interface unit to the AID applet; an AID applet identifier AID associated with the AID applet instance; and a relaying table by means of which there are associated with each other: one or several combinations of the AID applet identifier AID with one or several conditions of commands coming in at the card device; and for each combination: a specification of an applet and/or of an installed applet instance to which the command is to be forwarded if this combination is given.
 12. The card device according to claim 11, wherein the interface unit comprises a shareable interface of the applet instance, and the forwarding in accordance with the conditions in the relaying table to the applet instance takes place in accordance with the shareable interface mechanism.
 13. The card device according to claim 11, wherein the interface unit comprises a return functionality, in particular a return method, which is set up, in response to a command relayed by the AID applet instance, to transmit response data from the applet instance to the AID applet instance via the interface unit.
 14. The card device according to claim 11, wherein as a condition one or a combination of several of the following is provided: contacting type, in particular contactless or contact-type, between the card device and a terminal set up for the operation of the card device; country of operation of the card device; country relationship domestic or abroad between a country of operation of the card device and a home country of the card device in which the card device is registered.
 15. The card device according to claim 11, wherein the card device is configured in Java Card technology or in native code technology.
 16. The card device according to claim 11, wherein each installed applet instance is additionally set up to directly receive commands containing the applet identifier AID, in particular without relaying by the AID applet instance.
 17. The card device according to claim 11, wherein: an applet instance of a first applet is provided for international operation of the card device outside of a home country in which the card device is registered; and/or an applet instance of a second applet is provided for domestic operation of the card device in the home country in which the card device is registered.
 18. A method, in a card device, for relaying a command coming in at the card device from outside the card device; the card device comprising a non-volatile memory area, wherein in the non-volatile memory area there are installed: at least one applet instance of at least one applet; for each installed applet instance an applet identifier AID associated with the applet instance; and wherein an AID applet instance of an AID applet, comprising an interface unit for communication with applets; in each installed applet intended to be able to communicate with the AID applet, an interface unit to the AID applet; an AID applet identifier AID associated with the AID applet instance; and a relaying table by means of which there are associated with each other: one or several combinations of the AID applet identifier AID with one or several conditions of commands coming in at the card device; and for each combination: a specification of an applet and/or of an installed applet instance to which the command is to be forwarded if this combination is given, the method wherein receiving a command that includes an AID applet identifier AID of the AID applet under one or several conditions, wherein the AID applet identifier AID and the one or several conditions correspond to an entry in the relaying table; and forwarding the command to an applet instance in accordance with the entry in the relaying table.
 19. The method according to claim 18, wherein the interface unit comprises a return functionality, in particular a return method, which, in response to a command relayed by the AID applet instance, transmits response data from the applet instance to the AID applet instance via the interface unit.
 20. A card device: comprising, in one or several non-volatile memory areas of the card device, functional applets, an AID applet and a relaying table; and comprising a relaying device that is set up, with respect to commands coming in at the card device under an AID identifier of the AID applet and under certain conditions, to: accept these at the AID applet, and relay these to a functional applet in accordance with the relaying table. 